//
//  TeamInfoTableViewCell.m
//  NBAPro
//
//  Created by 李广松 on 16/7/9.
//  Copyright © 2016年 WYH. All rights reserved.
//

#import "TeamInfoTableViewCell.h"

@implementation TeamInfoTableViewCell

@synthesize teamCity, teamIcon, teamMark, teamName, teamRank, teamBtn;

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self) {
        teamRank = [CreateControl createLabelWithFrame:CGRectMake(0, 0, 41, 88) AndText:@"" AndTextColor:[UIColor colorWithRed:126/255.0 green:137/255.0 blue:159/255.0 alpha:1] AndBackgroundColor:[UIColor clearColor] AndTextFont:10];
        teamRank.font = [UIFont fontWithName:FONT_Ari size:10];
        [self addSubview:teamRank];
        
        teamCity = [CreateControl createLabelWithFrame:CGRectMake(teamRank.frame.origin.x + teamRank.frame.size.width + 15, 88 / 2 - 2 - 18, 200, 20) AndText:@"" AndTextColor:[UIColor colorWithRed:116/255.0 green:124/255.0 blue:149/255.0 alpha:1] AndBackgroundColor:[UIColor clearColor] AndTextFont:17];
        teamCity.textAlignment = NSTextAlignmentLeft;
        [self addSubview:teamCity];
        
        teamName = [CreateControl createLabelWithFrame:CGRectMake(teamCity.frame.origin.x, 88 / 2 + 2, 100, 13) AndText:@"" AndTextColor:[UIColor colorWithRed:186/255.0 green:191/255.0 blue:203/255.0 alpha:1] AndBackgroundColor:[UIColor clearColor] AndTextFont:12];
        teamName.textAlignment = NSTextAlignmentLeft;
        [self addSubview:teamName];
        

        teamMark = [CreateControl createLabelWithFrame:CGRectMake(self.frame.size.width - 70, 0, 80, 88) AndText:@"" AndTextColor:[UIColor colorWithRed:116/255.0 green:124/255.0 blue:149/255.0 alpha:1] AndBackgroundColor:[UIColor clearColor] AndTextFont:15];
        teamMark.font = [UIFont fontWithName:FONT_ST size:15];
        [self addSubview:teamMark];
        
        teamIcon = [[UIImageView alloc] initWithFrame:CGRectMake(teamMark.frame.origin.x + teamMark.frame.size.width + 70 / 2 - 35 / 2, 88 / 2 - 35 / 2, 35, 35)];
        [self addSubview:teamIcon];
        

    }
    
    return self;
}


@end
